package pers.xx.sbm.vo;

public class ScoreSampleVo implements Comparable<ScoreSampleVo>{
    private String name;

    private String indexName;

    private double score;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public int compareTo(ScoreSampleVo o) {
        if (score > o.getScore()) {
            return -1;
        } else if (score < o.getScore()) {
            return 1;
        } else {
            return 0;
        }
    }
}
